package com.xyd.Biz.Impl;

import com.xyd.Biz.HotCramponBiz;
import com.xyd.Dao.HotCramponDao;
import com.xyd.Entity.Commodity;
import com.xyd.Util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class HotCramponBizImpl implements HotCramponBiz {

    HotCramponDao hotCrampon = null;
    SqlSession session = null;

    public HotCramponBizImpl() {
        SqlSession session = SqlSessionFactoryUtil.open();
        hotCrampon = session.getMapper(HotCramponDao.class);
    }

    @Override
    public List<Commodity> HotCrampon() {
        return hotCrampon.HotCrampon();
    }
}
